<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<c:set var="contextPath" value="<%=request.getContextPath()%>"></c:set>
<c:set value="gas-cans" var="urlPrefix"></c:set>
<c:forEach var="division" varStatus="vs" items="${divisions}">
	<c:choose>
		<c:when test="${division.id == curDivision.id}">
			<c:set value="tab_cur" var="tabClass"></c:set>
		</c:when>
		<c:otherwise>
			<c:set value="tab_nor" var="tabClass"></c:set>
		</c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${division.id == 1}">
			<div class="${tabClass}" onclick="window.location.href='${contextPath}/${urlPrefix}/viewHome'"><h4><a style="color: #FFF;text-decoration: none;" href="${contextPath}/${urlPrefix}/viewHome">${division.divNameEn}</a></h4></div>
		</c:when>
		<c:when test="${division.id == 2}">
			<div class="${tabClass}" onclick="window.location.href='${contextPath}/${urlPrefix}/viewAboutUs'"><h4><a style="color: #FFF;text-decoration: none;" href="${contextPath}/${urlPrefix}/viewAboutUs">${division.divNameEn}</a></h4></div>
		</c:when>
		<c:when test="${division.id == 3}">
			<div class="${tabClass}" onclick="window.location.href='${contextPath}/${urlPrefix}/viewProducts'"><h4><a style="color: #FFF;text-decoration: none;" href="${contextPath}/${urlPrefix}/viewProducts">${division.divNameEn}</a></h4></div>
		</c:when>
		<c:when test="${division.id == 4}">
			<div class="${tabClass}" onclick="window.location.href='${contextPath}/${urlPrefix}/viewNewsList'"><h4><a style="color: #FFF;text-decoration: none;" href="${contextPath}/${urlPrefix}/viewNewsList">${division.divNameEn}</a></h4></div>
		</c:when>
		<c:when test="${division.id == 5}">
			<div class="${tabClass}" onclick="window.location.href='${contextPath}/${urlPrefix}/viewContactUs'"><h4><a style="color: #FFF;text-decoration: none;" href="${contextPath}/${urlPrefix}/viewContactUs">${division.divNameEn}</a></h4></div>
		</c:when>
	</c:choose>
</c:forEach>

